<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增会议')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-conference-add">

        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label">会议名称：</label>
                <div class="col-sm-8">
                    <input name="conName" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label">会议开始时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="conStartTime" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label">会议结束时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="conEndTime" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label">会议排序：</label>
                <div class="col-sm-8">
                    <input name="conSort" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label">会议密码：</label>
                <div class="col-sm-8">
                    <input name="conPassworrd" class="form-control" type="number" maxlength="4" minlength="4" required>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label">参会人员：</label>
                <div class="col-sm-8">
                    <!--                        <input name="conUserId" class="form-control" th:value="${user}" type="text">-->
                    <!--                        <div th:text="${user}"></div>-->
                    <select name="conUserId" class="form-control">
<!--                        <option value="">所有人员</option>-->
                        <option th:each="user: ${sysUsers}" th:text="${user.userName}"
                                th:value="${user.userId}"></option>
                    </select>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "system/conference"
    $("#form-conference-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-conference-add').serialize());
        }
    }


    $("input[name='conStartTime']").datetimepicker({
        format: "yyyy-mm-dd HH:mm:ss",
        maxView: "month",
        autoclose: true
    });

    $("input[name='conEndTime']").datetimepicker({
        format: "yyyy-mm-dd HH:mm:ss",
        maxView: "month",
        autoclose: true
    });
</script>
</body>
</html>